package com.example.ntier.model.bll;

import com.example.ntier.model.entity.Department;

public class DeparmentValidator implements Validator<Integer, Department> {

	@Override
	public boolean validateEntity(Department entity) {
		boolean result = false;
		if (entity.getName().trim().length() >= 3) {
			result = true;
		}
		return result;
	}

}
